package com.hhx.androidrxmvp.ui;

import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.Toast;

import com.hhx.androidrxmvp.R;
import com.hhx.androidrxmvp.base.BaseMvpActivity;

import butterknife.BindView;

public class ShowVaryViewActivity extends BaseMvpActivity {

    @BindView(R.id.very_container)
    LinearLayout mContainer;

    @Override
    protected int getLayoutResId() {
        return R.layout.activity_show_vary_view;
    }

    @Override
    protected View getLoadingTargetView() {
        return mContainer;
    }

    @Override
    protected void initView(Bundle savedInstanceState) {
        toggleNetworkError(true, new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Toast.makeText(mContext, "toggleNetworkError", Toast.LENGTH_SHORT).show();
                //toggleShowLoading(true, "加载中...");
                toggleRestore();
            }
        });
    }
}
